home *** CD-ROM | disk | FTP | other *** search
- /*
- @Node Header
- @Next Macro
-
- Code: procbar.rexx
- Author: Russell Leighton
- Revision: 16 Feb 1994
-
- Comments:
-
- This script is used by ami2d.rexx to setup the button window for result
- processing operations. It is only required by ami2d.rexx and should not be
- executed as a standalone script. It does, however, serve as an example
- script for rexxbar.
-
- @EndNode
- @Node Macro
- */
-
- options results
-
- address command
- if ~show('ports',"RXB_AMI2D") then do
- 'run ami2d:bin/rexxbar -hRXB_AMI2D -pAMI2D'
- 'waitforport RXB_AMI2D'
- end
- else address rxb_ami2d 'close'
-
- address rxb_main 'open'
- parse var result ix iy iw ih
- ix = -iw
- iy = ih
- ih = -200
-
- address rxb_ami2d
-
- address ami2d 'info'
- parse var result nnodes nelems ngrps nsoln nres
-
- if nsoln = 0 then do
- 'open('ix','iy','iw','ih',AMI2D,process,"ami2d:rexx/movebar")'
- exit
- end
-
- address ami2d 'get funs'
-
- results = result
-
- do while length(results) ~= 0
- result1 = subword(results,1,1)
- 'cycle(0,'result1',ami2d:macros/process/range)'
- 'cycle(1,'result1')'
- results = subword(results,2)
- end
- 'radio(2,node)'
- 'radio(2,ave)'
- 'radio(2,intg)'
-
- 'button(3,fill,ami2d:macros/process/fillres)'
- 'button(4,plot,ami2d:macros/process/plotres)'
-
- 'radio(5,max)'
- 'radio(5,min)'
- 'radio(5,ave)'
- 'radio(5,num)'
- 'cycle(6,1)'
- 'cycle(6,2)'
- 'cycle(6,3)'
- 'cycle(6,4)'
- 'cycle(6,5,ami2d:macros/process/switch)'
-
- 'text(7,range:)'
- 'string(8,0)'
- 'string(9,0)'
-
- 'open('ix','iy','iw','ih',AMI2D,process,"ami2d:rexx/movebar")'
- 'text(7,range:)'
-
- call 'ami2d:macros/process/range'
- exit
-